package com.lzx.user.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.util.Date;

//修改用户信息所需的参数(前台)
@Data
public class UserinfoVO {
    private Long id;
    @NotEmpty(message = "手机号不能为空")
    @Pattern(regexp = "^1([3-9])\\d{9}$", message = "手机号格式不正确")
    private String mobile;
    @NotEmpty(message = "昵称不能为空")
    private String nickname;
    private String sex;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    private String avatar;
    private String email;
    private String introduction;
}
